<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			div{
				width: 50px;
				height: 200px;
				border:1px solid red;
			}
		</style>
		<script>
			function incDiv(){
				var h=document.getElementById("d1");
				var ht=(document.defaultView.getComputedStyle(h,null)||h.currentStyle).height;
				alert(ht);
				var newht=parseInt(ht)+10;
				h.style.height=newht+"px";
			}
		</script>
	</head>
	<body>
		<div id="d1"></div>
		<input type="button" value="给div加高10px" onclick="incDiv()" />
	</body>
</html>
